package com.example.assignment7.aspect;

import org.aspectj.lang.annotation.Aspect;
import org.springframework.stereotype.Component;

import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

@Aspect
@Component
public class StopWatchAspect {

    //统计各个API的每次调用时间
    final Map<String, List<Long>> metrics= Collections.synchronizedMap(new HashMap<>());

    //统计异常次数
    final Map<String,Long> exceptionNumber=Collections.synchronizedMap((new HashMap<>()));
}
